<%@ page contentType="text/html;charset=utf-8" language="java"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<%@include file="./common/base.jsp" %><html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>旅行社_约导游</title>
<!--css-->
<link rel="stylesheet" type="text/css" href="css/wutongstyle.css">
<!--右侧滑块-->
</head>

<body>
<!--head begin-->
<%@ include  file="./common/header.jsp"%>
<!--nav end--> 
<!--content begin-->
<div class="wt_content">
  <dl class="yuedaoyou daoyou">
    <dt><span>您的位置：<a href="index.jsp">约导游</a> &gt; <a href="lxslist.jsp">旅行社</a> &gt; 详细信息</span><t id="travelorgNameId"></t></dt>
    <dd>
      <div class="daoyou_info clearfix">
        <div class="xx_box">
          <div class="xx">
            <table width="100%" border="0" cellspacing="0" cellpadding="0" >
              <tr>
                <td colspan="4"><h3 class="infotitle">旅行社基本信息</h3></td>
              </tr>
              <tr>
                <td  class="str">许可证号：</td>
                <td id="licnumId"></td>
                <td class="str">成立时间：</td>
                <td id="createTimeId"></td>
              </tr>
              <tr>
                <td class="str">营业执照：</td>
                <td id="buslicnumId"></td>
                <td class="str">法人：</td>
                <td id="contact1Id"></td>
              </tr>
              <tr>
                <td class="str">所在城市：</td>
                <td id="cityId"></td>
                <td class="str">级别：</td>
                <td id="levelId"></td>
              </tr>
              <tr>
                <td class="str">网址：</td>
                <td id="siteId"></td>
                <td class="str">&nbsp;</td>
                <td>&nbsp;</td>
              </tr>
              <!--    <tr>
                <td class="str">旅行社简介:</td>
                <td ><pre  id="descriptionId"></pre></td>
              </tr> -->
            </table>
             <h4>旅行社简介:</h4>
            <pre style="font-size:12px;word-break:break-all;word-wrap:break-word;" id="descriptionId"></pre>
          </div>
          
        </div>
        <div class="zp"><img id="headImgId" src="" width="185" height="90" />
          <div class="tel">
            <!--  <h4>发私信</h4>-->
            <p id="contactId"></p>
          </div>
        </div>
      </div>
    </dd>
  </dl>
</div>
<!--content end--> 
<!--footer begin-->
<%@ include  file="./common/footer.jsp"%>
<!--footer end-->
</body>
<script>
var travelorgId=request("travelorgId");
$(function(){
	loadLxsInfo();
});
function loadLxsInfo(){
	var objp={};
	$.ajax({
	 url: '${path}/core/getTravelorgNoLoginById?id='+travelorgId,
	 type: 'POST',
	 timeout: 30000,
	 cache : false,
	 data :objp,
	 async: false,
	 dataType:"json",      
	 contentType:"application/json",   
	// contentType: "application/json; charset=utf-8",
	 success:function(msg){
		  //alert(msg.totalCount)
		  var data = msg.travelorg;
			 var tipstr=" 登录后方可联系<br />【<a href=\"join.jsp\">免费注册</a>】【<a href=\"login.jsp\">点击登录</a>】";
			 if(loginUserId==null||loginUserId=="undefine"||loginUserId==""){
				 $("#contactId").html(tipstr);
			 }else{
				 if(loginUserType==0||loginUserType==1){
					 $("#contactId").html("<a href=\"lxslogin_7_fabu.jsp?recUserName="+data.userName+"&recName="+escape(data.name)+"\" target=\"_blank\"><h5 style=\"color:green\">发私信</h5></a>");
				 }else if (loginUserType==2){
					 $("#contactId").html("<a href=\"dylogin_4_fabu.jsp?recUserName="+data.userName+"&recName="+escape(data.name)+"\" target=\"_blank\"><h5 style=\"color:green\">发私信</h5></a>");
				 }else{
					 $("#contactId").html("<a href=\"adminletter_fabu.jsp\" target=\"_blank\"><h5 style=\"color:green\">发私信</h5></a>");

				 }
			 }
		  $("#headImgId").attr("src",imgDomain+data.photo);
		  $("#travelorgNameId").html(data.name);
		  $("#licnumId").html(data.licnum);
		  $("#buslicnumId").html(data.buslicnum);
		  $("#createTimeId").html(data.createTime);
		  $("#contact1Id").html(data.contact);
		  $("#cityId").html(data.city);
		  $("#levelId").html(data.level);
		  $("#siteId").html(data.site);
		  $("#descriptionId").html(data.description);
	
	 },
	  failure:function(msg){
		   alert(eval('('+msg.responseText+')').error_text);
	  		
	  },
	  error:function(msg){
		   alert(eval('('+msg.responseText+')').error_text); 
	  }
	});
}
</script>
</html>
